using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._BusinessAnalystTools._StatisticalDataCollections
{
    /// <summary>
    /// <para>Generate SDCX Index</para>
    /// <para>Creates an index for a Statistical Data Collection (SDCX). The index will improve performance when using the custom data in analysis tools such as Enrich Layer.</para>
    /// <para>为统计数据收集 （SDCX） 创建索引。在分析工具（如丰富图层）中使用自定义数据时，该索引将提高性能。</para>
    /// </summary>    
    [DisplayName("Generate SDCX Index")]
    public class GenerateSDCXIndex : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public GenerateSDCXIndex()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_sdcx_file">
        /// <para>Input SDCX File</para>
        /// <para>The input Statistical Data Collection file (.sdcx).</para>
        /// <para>输入统计数据收集文件 （.sdcx）。</para>
        /// </param>
        public GenerateSDCXIndex(object _sdcx_file)
        {
            this._sdcx_file = _sdcx_file;
        }
        public override string ToolboxName => "Business Analyst Tools";

        public override string ToolName => "Generate SDCX Index";

        public override string CallName => "ba.GenerateSDCXIndex";

        public override List<string> AcceptEnvironments => ["workspace"];

        public override object[] ParameterInfo => [_sdcx_file, _updated_sdcx_file];

        /// <summary>
        /// <para>Input SDCX File</para>
        /// <para>The input Statistical Data Collection file (.sdcx).</para>
        /// <para>输入统计数据收集文件 （.sdcx）。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input SDCX File")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _sdcx_file { get; set; }


        /// <summary>
        /// <para>Updated SDCX File</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Updated SDCX File")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _updated_sdcx_file { get; set; }


        public GenerateSDCXIndex SetEnv(object workspace = null)
        {
            base.SetEnv(workspace: workspace);
            return this;
        }

    }

}